package com.dehong.service.impl;

import com.dehong.mapper.ExtCproductCMapper;
import com.dehong.model.ExtCproductC;
import com.dehong.service.ExtCproductCService;
import com.dehong.vo.ExContractPCVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class ExtCproductCServiceImpl implements ExtCproductCService {
@Resource
private ExtCproductCMapper extCproductCMapper;

    @Override
    public int deleteByPrimaryKey(String extCproductId) {
        return extCproductCMapper.deleteByPrimaryKey(extCproductId);
    }

    @Override
    public int insert(ExtCproductC record) {
        return extCproductCMapper.insert(record);
    }

    @Override
    public int insertSelective(ExtCproductC record) {
        return extCproductCMapper.insertSelective(record);
    }

    @Override
    public ExtCproductC selectByPrimaryKey(String extCproductId) {
        return extCproductCMapper.selectByPrimaryKey(extCproductId);
    }

    @Override
    public int updateByPrimaryKeySelective(ExtCproductC record) {
        return extCproductCMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(ExtCproductC record) {
        return extCproductCMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<ExContractPCVo> selectextpc(String contractProductId) {
        return extCproductCMapper.selectextpc(contractProductId);
    }


}
